package com.ky.gp.app.controller;

import com.ky.common.param.FeedbackAdd;
import com.ky.common.vo.R;
import com.ky.gp.app.service.OpenCourseVideoComplaintMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * --- 天道酬勤 ---
 *
 * @author 1379
 * @date 2024/6/21
 * @desc -- 代码敲烂 月薪过万--
 */
@RestController
@RequestMapping("/api/course")
public class OpenCourseVideoComplaintController {

    @Autowired
    private OpenCourseVideoComplaintMapper openCourseVideoComplaintMapper;


    @PostMapping("/feedback")
    public R insertFeedback(@RequestBody FeedbackAdd feedbackAdd){

        return openCourseVideoComplaintMapper.insertFeedback(feedbackAdd);
    };


}